package ru.xeden.web.view.impl;

import ru.xeden.core.common.ObjectRegistrByKey;
import ru.xeden.web.view.IView;
import ru.xeden.web.view.IViewRegisterService;

public class ViewRegisterServiceImpl
    extends ObjectRegistrByKey<String, IView>
    implements IViewRegisterService
{

    
    public ViewRegisterServiceImpl()
    {
    }

    @Override
    public void registerView(IView view)
    {
        register(view.getId(), view);
    }

    @Override
    public void unregisterView(IView view)
    {
        unregister(view.getId());
    }
    
    
    @Override
    public IView getViewById(String id)
    {
        return super.getRegisteredObject(id);
    }
    
}
